package com.atwisdom.star.core.bsl.planner.entity;

import lombok.Data;

/**
 * 物料：包括成品、半成品、原材料
 */
@Data
public class Material {
    private Long id;
    private String pcode;
    private String bcode;
    private String carModel;
    private String spec;
    private String model;
    private String unit;
    private String subUnit;
    private Double referToPrice;    //参考价格
    private Double conversionRate; //主辅单位转化率
    private String name;
    private String mType; //物料类别: 原材料、半成品、成品
    private String attr;  //物料属性: 采购件、制造件、外协件、中间件
    private String dispatchFlag; //领派标识，1：领，2：派
    private Integer safeStock;
    private Integer maxStock;
    private Integer minBatch;  //生产最小批量
    private Integer minPackage; //采购量小包装量
    private Integer useMultiple; //生产倍量
    private Integer acceptQuantity; //收容数;
    private Integer purchasingPeriod;  //采购周期以天为单
    private Integer outsourcingPeriod; //委外生产周期
    private Integer producePeriod;  //自制周期
    private String defaultContainer; //默认容器

    private Double produceLeadTime; //生产提前期
    private Integer saleLeadTime;    //销售备货期
    private Integer purchasingLeadTime; //采购提前期
    private Integer outsourcingLeadTime; //委外提前期
    private String routing;

    private Long warehouseId; //默认仓库Id
    private String warehouseCode; //默认仓库编码
    private String warehouseName; //默认仓库名称

    private Integer supplierId;
    private String supplierCode;
    private String supplierName;
    private Integer outsourcingSupplierId;
    private String outsourcingSupplierCode;
    private String outsourcingSupplierName;
}
